using LL=long long;
class Solution {
public:
    long long flowerGame(int n, int m) {
    
        return (1LL+n)/2*(m/2)+(n/2)*((1LL+m)/2);
    }
};
